package com.example.demo.mapper;

import com.example.demo.entity.MaterialEntity;
import com.example.demo.entity.MaterialSearchBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MaterialMapper {
    public List<MaterialEntity> materialFindAll();
    boolean materialUpdate(MaterialEntity materialEntity);

    boolean materialInsert(MaterialEntity materialEntity);

    boolean materialDelete(int id);

    public List<MaterialEntity> materialSearch(MaterialSearchBean materialSearchBean);

    int materialSearchCount(MaterialSearchBean materialSearchBean);
}
